/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package own_packets;

import java.io.Serializable;
import java.util.List;
import pojo.Files;

/**
 *
 * @author Hnmtuan
 */
public class Protocol implements Serializable {
    private Boolean _isRequest;
    private String _messages;
    private RequestType _requestType;
    private List<pojo.Files> _files;
    private String _fileName;
    private Boolean _isDownload;

    public String getFileName() {
        return _fileName;
    }

    public void setFileName(String _fileName) {
        this._fileName = _fileName;
    }

    public Boolean getIsDownload() {
        return _isDownload;
    }

    public void setIsDownload(Boolean _isDownload) {
        this._isDownload = _isDownload;
    }

    public List<Files> getFiles() {
        return _files;
    }

    public void setFiles(List<Files> _files) {
        this._files = _files;
    }

    public RequestType getRequestType() {
        return _requestType;
    }

    public void setRequestType(RequestType _requestType) {
        this._requestType = _requestType;
    }

    public Boolean getIsRequest() {
        return _isRequest;
    }

    public void setIsRequest(Boolean _isRequest) {
        this._isRequest = _isRequest;
    }

    public String getMessages() {
        return _messages;
    }

    public void setMessages(String _messages) {
        this._messages = _messages;
    }
    
    public enum RequestType{
        TEST_REQUEST,
        SEARCH_REQUEST,
        DOWNLOAD_REQUEST
    }

}
